package day0228;

public class StringBuilderDemo {
    public static void main(String[] args) {

        String line ="hello";
        StringBuilder stringBuilder =new StringBuilder(line);

        stringBuilder.append("123");

        stringBuilder.insert(1,"哈哈");

        stringBuilder.delete(2,4);

        stringBuilder.replace(1,3,"我爱JAVA");

        System.out.println(stringBuilder);
        stringBuilder.reverse();



    }
}
